package cn.gok.thread;

public class 线程通信例子 {
    public static void main(String[] args) {
        WareHouse wareHouse = new WareHouse();
        ProduceThread pt = new ProduceThread(wareHouse);
        ConsumeThread ct1 = new ConsumeThread(wareHouse);
        ConsumeThread ct2 = new ConsumeThread(wareHouse);
        pt.start();
        ct1.start();
        ct2.start();
    }
}
